package com.bwie.common.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author：ShenJiaFeng
 * @Package：com.bwie.common.domain
 * @Project：zg6_week11
 * @name：Store
 * @Date：2024/4/25 9:15
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName(value = "store")
public class Store {
    /**
     * 门店id
     */
    @TableId(type = IdType.AUTO)
    private Long storeId;
    /**
     * 名店名称
     */
    private String storeName;
    /**
     * 门店地址
     */
    private String storeAddress;
    /**
     * 营业时间
     */
    @DateTimeFormat(pattern = "yyyy年MM月dd日:HH:mm:ss")
    @JsonFormat(pattern = "yyyy年MM月dd日:HH:mm:ss",timezone = "GMT+8")
    private Date businessTime;
    /**
     * 门店特色
     */
    private String storeFeature;
    /**
     * 热线
     */
    private String hotWire;
    /**
     * 距离
     */
    private String storeDistance;
    /**
     * 门店图片
     */
    private String storeImg;
    /**
     * 用户
     */
    private Long userId;
}
